const Http = require("./utils");
class Url extends Http{
  static baseUrl = `http://47.108.197.28:3000/`;
  static hotUrl(){
    return this.request(this.baseUrl+"top/playlist?order=hot");
  };
  static japanUrl(){
    return this.request(this.baseUrl+"top/playlist?cat=日语");
  };
  static djUrl(){
    return this.request(this.baseUrl+"personalized/djprogram");
  }
  static detailUrl(id){
    return this.request(this.baseUrl+`playlist/detail?id=${id}`);
  }
  static songUrl(id){
    return this.request(this.baseUrl+`song/url?id=${id}`);
  }
}
module.exports = {
  Url
}